{% extends "base.html" %}

{% block topbar %}
<div id="title">Конверт</div>
<div id="rightbutton"><a href="/logout">Выход</a></div>
{% endblock %}

{% block content %}
<ul class="pageitem">
    <li class="textbox">
        <span class="header">Неделя {{ envelope.begin|date:"j b" }} - {{ envelope.end|date:"j b" }}</span>
        <p>Размер: {{ envelope.size|floatformat }} {{ user.currency_name }} (в день {{ envelope.by_day|floatformat }} {{ user.currency_name }})</p>
    </li>
    {% for entry in envelope %}
    <li class="menu">
        <a href="/daily?date={{ entry.0|date:"Y-m-d" }}">
        {% ifequal entry.3 1 %}
            <span class="name" style="color:#777777">
        {% else %}
            {% ifequal entry.3 2 %}	
            <span class="name" style="color:#ff00ff">
            {% else %}
            <span class="name">
            {% endifequal %}
        {% endifequal %}
        {{ entry.0|date:"D, d b" }} (<font color="green">{{ entry.4|floatformat }}</font>)</span>
        <span class="comment">{{ entry.1 }}</span><span class="arrow"></span></a>
    </li>
    {% endfor %}
</ul>
{% endblock %}
